﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DS_Server
{
    public class dsFactory
    {
        static IDS p = null;

        static dsFactory()
        {
            add(new DS_CSV());
            add(new DS_DB());
        }


        static void add(IDS x)
        {
            x.Next = p;
            p = x;
        }

        public static IDS getInstance(string path)
        {
            return p.isReady(path);
        }
    }
}
